<?php
namespace Cyfy\Modules\Objects;

/**
 * Abstract class for all objects
 */
abstract class GeneralObject
{
    protected $data;
    
            
    /**
     * Custom class.
     * @var string
     */
    protected $cls;
    
    /**
     * Custom id.
     * @var string
     */
    protected $id;
    
    /**
     * Object name
     * @var string
     */
    protected $name;

    /**
     * Sets new class
     * @param string Class name
     */
    function setClass($cls){
        $this -> cls = $cls;
    }
    
    /**
     * Shows the object.
     */
    public function show()
    {
        return $this -> data;
    }
    
    /**
     * Shows the object.
     */
    public function __toString()
    {
        return $this -> show();
    }
    
    
}